package org.zjx.data.screen;

import org.zjx.command.entity.screen.Room;
import org.zjx.data.BaseSceneBuilder;

import java.awt.*;

public class YueGongSceneBuilder extends BaseSceneBuilder {

    @Override
    protected String getSceneName() {
        return "月宫";
    }

    @Override
    protected Dimension getSceneSize() {
        return new Dimension(127, 95);
    }

    @Override
    protected void addMonsters() {

    }

    @Override
    protected void addNpcs() {
        addNpc("吴刚", new Point(9, 34));
        addNpc("月香侍女", new Point(105, 57));
        addNpc("康太尉", new Point(101, 55));
    }

    @Override
    protected void addRooms() {
        Room guangHanGong = createRoom("广寒宫", new Dimension(127, 95));
        addNpcToRoom(guangHanGong, "嫦娥", new Point(27, 13));
        rooms.add(guangHanGong);
    }

    @Override
    protected void addTeleports() {
        addSceneTeleport(new Point(118, 9), "天宫", new Point(38, 163), new Point(121, 6));
        addSceneTeleport(new Point(105, 61), "广寒宫", new Point(16, 8), new Point(108, 61));
        addRoomTeleport(new Point(105, 61), "广寒宫", new Point(16, 8), new Point(108, 61));
    }

    public static void main(String[] args) {
        new YueGongSceneBuilder().execute("yuegong_scene.json", "月宫");
    }
}